package io.itit.ecp.admin.common.enums;

import io.itit.grass.common.enums.IBaseEnum;

import java.io.Serializable;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：预警
 * @Date：Create by 2023-12-04 15:28:53
 */
public interface IEarlyWarningEnums {

	/* 预警类型(1:设备计量预警,2:碳排放预警) */
	enum WarningType implements IBaseEnum {
		warningType1("1", "设备计量预警"),
		warningType2("2", "碳排放预警");

		public final String warningType;
		public final String desc;

		WarningType(String warningType, String desc) {
			this.warningType = warningType;
			this.desc = desc;
		}

		@Override
		public Serializable getValue() {
			return warningType;
		}

		@Override
		public String getDesc() {
			return desc;
		}
	}

	/* 计量条件(1:按时计量,2:按日计量,3:按月计量) */
	enum MeterCondition implements IBaseEnum {
		meterCondition1("1", "按时计量"),
		meterCondition2("2", "按日计量"),
		meterCondition3("3", "按月计量");

		public final String meterCondition;
		public final String desc;

		MeterCondition(String meterCondition, String desc) {
			this.meterCondition = meterCondition;
			this.desc = desc;
		}

		@Override
		public Serializable getValue() {
			return meterCondition;
		}

		@Override
		public String getDesc() {
			return desc;
		}
	}

	/* 推送规则(1:实时推送,2:一天一次,3:一天两次,4:一天三次) */
	enum PushType implements IBaseEnum {
		pushType1("1", "实时推送"),
		pushType2("2", "一天一次"),
		pushType3("3", "一天两次"),
		pushType4("4", "一天三次");

		public final String pushType;
		public final String desc;

		PushType(String pushType, String desc) {
			this.pushType = pushType;
			this.desc = desc;
		}

		@Override
		public Serializable getValue() {
			return pushType;
		}

		@Override
		public String getDesc() {
			return desc;
		}
	}

}
